<?php 
# $Id$
require_once(APP_LIB_DIR . 'Sajax.php');
require_once('utils.inc.php');

require_once('header.php'); 

$list=$template['list'];
?>
<script language="JavaScript" type="text/javascript">
</script>

<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>css/structure2.css" type="text/css" />
<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>css/form2.css" type="text/css" />

<table width="100%" class="menubar" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td class="menudottedline" width="40%">
            <div class="pathway"><font size="2px" color="#000033"><b><?=$config['version']?></b></font></div>       
        </td>
        <td class="menudottedline" align="right">
            <table cellpadding="0" cellspacing="0" border="0" id="toolbar">
                <tr height="60" valign="middle" align="center">
                    <td>
                        <a class="toolbar" href="#">
                        <img src="<?=WEB_MODULE_DIR?>images/help_f2.png" 
                             align="middle" name="new" border="0"><br>Help
                        </a>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<br>
<br>
<div align="center" class="centermain">
    <div class="main">
        <table class="adminheading">
            <tr>
                <th class="cpanel" rowspan="2" nowrap>DTR Send Config&nbsp;<font size="1px" color="#CCCCCC">[<?=strtoupper($auth['privilege'])?>]</font></th>
            </tr>
        </table>
    </div>
        <table class="adminlist">
          <tr>
            <th class="title"><a href="javascript: show_tool('panel');">CONFIG PANEL</a></th>
          </tr>
          <tr>
            <td>
                        <form id="form2" class="wufoo" method="post" >
                              <ul>
                                <? 
                                    $c2 ="checked";
                                    foreach ($list as $d):
                                    $c = ($d['enabled']==1) ? "checked" : "";
                                    $c2 = ($c && $c2=='checked') ? "" : $c2;
                                ?>
                                <li>
                                    <b><?=$d['config']?></b> 
                                    <input  type="radio" id="config" name="config" value="<?=$d['id']?>" <?=$c?> >
                                    <br/>
                                    <?= $d['description']?>
                                    <br/> <br/> <br/>
                                </li>
                                <? endforeach; ?>
                                <li>
                                    <b>Disabled</b> 
                                    <input  type="radio" id="config" name="config" value="100" <?=$c2?> >
                                    <br/>
                                    Disable Sending SMS
                                    <br/> <br/> <br/>
                                </li>
                                <li>
                                  <span>
                                    <input id="saveForm" class="btTxt" type="submit" value="Save" onClick="save();"/>
                                  </span>
                                </li>
                              </ul>
                        </form>
		</td>
	    </tr>
	</table>
<?php require_once('footer.php'); ?>
